

#define ERR_NET_BASE						0x00001000
#define ERR_NET_MAGIC_NUM					(ERR_NET_BASE + 1)
#define ERR_NET_MAGIC_NUM_MSG				"MAGIC_NUM is bad, connection closed!"

#define ERR_NET_MESSAGE_TOO_LONG			(ERR_NET_BASE + 2)
#define ERR_NET_MESSAGE_TOO_LONG_MSG		"Message too length, connection closed!"

#define ERR_NET_MESSAGE_ZERO				(ERR_NET_BASE + 3)
#define ERR_NET_MESSAGE_ZERO_MSG			"Message length is zero,connection closed!"

#define ERR_NET_RECEIVE_BUFFER_BAD			(ERR_NET_BASE + 4)
#define ERR_NET_RECEIVE_BUFFER_BAD_MSG		"Receive buffer is bad,connection closed!"